	<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/template" prefix="t" %>
<%@ taglib tagdir="/WEB-INF/tags/componentes" prefix="comp" %>

<t:template>
	<jsp:body>
		<div class="contact_form">
			<form action="${pageContext.request.contextPath}/servico/insert" method="POST">
				<div class="form_subtitle">Cadastro de Serviço</div>
				
				<input name="servico.pkCodigo" value="${servico.pkCodigo}" readonly="readonly" type="hidden" class="contact_input"/>
				
				<div class="form_row">
					<label class="contact"><strong>Descrição:</strong></label>
					<input name="servico.dsDescricao" value="${servico.dsDescricao}" type="text" class="contact_input"/>
				</div>
				
				<div class="form_row">
					<label class="contact"><strong>Valor:</strong></label>
					<input name="servico.dsValor" value="${servico.dsValor}" type="text" class="contact_input"/>
				</div>
				
				<div class="form_row">
					<label class="contact"><strong>Funcionário Autorizado:</strong></label>
					<select class="contact_comboBox" name="servico.fkIdFuncionario.pkCodigo">
						<option value="">Selecione...</option>
						<c:forEach var="item" items="${listaFuncionarios}">
							<option value="${item.pkCodigo}" ${(servico.fkIdFuncionario.pkCodigo eq item.pkCodigo) ? 'SELECTED' : ''}>${item.dsNome}</option>
						</c:forEach>
					</select>
				</div>
				
				
				<comp:messages />
				
				<div class="form_row">
					<button type="submit" class="button">Salvar</button>
				</div>				
			</form>
		</div>
	</jsp:body>
</t:template>